package org.jash.common.binding

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

@BindingAdapter("android:image_url")
fun loadImage(view:ImageView, url: String?) {
    url?.let {
        Glide.with(view)
            .load(it)
            .into(view)
    }
}